Skip to content

chore(api-core): remove dead __contains__ methods from MockRequest - #17796

Merged
hebaalazzeh merged 1 commit into
mainfrom
fix/remove-dead-contains
Jul 20, 2026
Merged

chore(api-core): remove dead __contains__ methods from MockRequest#17796
hebaalazzeh merged 1 commit into
mainfrom
fix/remove-dead-contains

Conversation

@hebaalazzeh

Copy link
Copy Markdown
Contributor

Description

This PR addresses code review feedback by removing unused/dead mock helper methods:

  • Removed __contains__ methods from MockRequest and MockValueErrorRequest classes in test_requests.py, as the in operator is only used on dict type checks inside setup_request_id.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies mock classes in the unit tests for google-api-core by removing the unused __contains__ methods from mock request classes. I have no feedback to provide.

@ohmayr
ohmayr marked this pull request as ready for review July 20, 2026 23:07
@ohmayr
ohmayr requested a review from a team as a code owner July 20, 2026 23:07
@ohmayr ohmayr changed the title fix(api-core): remove dead __contains__ methods from MockRequest in test_requests.py chore(api-core): remove dead __contains__ methods from MockRequest Jul 20, 2026
@hebaalazzeh hebaalazzeh self-assigned this Jul 20, 2026
@hebaalazzeh
hebaalazzeh merged commit d272d50 into main Jul 20, 2026
39 checks passed
@hebaalazzeh
hebaalazzeh deleted the fix/remove-dead-contains branch July 20, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants